package com.lqm;

import org.junit.Test;
import org.springframework.util.DigestUtils;

/**
 * @program: CrowdFunding
 * @description
 * @author: lqm
 * @create: 2018-12-05 09:52
 */

public class T {
    @Test
    public void t(){
/*        String s = DigestUtils.md5DigestAsHex("admin".getBytes());
        System.out.println(s);*/

        String s="sdfaasdfa";
        s="111";
        s=s+"222";
        new StringBuilder(s).append("222");//线程不安全，效率高，单线程，1.5


        System.out.println(s);
 /*
        T1 t1 = new T1();

        Thread thread = new Thread(new T2());
        */

    }

    class T1 extends Thread{
        @Override
        public void run() {

        }
    }

    class T2 implements Runnable{
        @Override
        public void run() {

        }
    }

}

